package com.dw.dwdzcommerce.entity;

import java.util.List;

public class User extends BaseObject {

	private static final long serialVersionUID = 1L;
	
	private List<Integer> focusShop;

	private String userId;
	private String userPassword;
	private String avator;

	private int posLongitude;// 经度
	private int posLatitude;// 纬度

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserPassword() {
		return userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	public String getAvator() {
		return avator;
	}

	public void setAvator(String avator) {
		this.avator = avator;
	}

	public int getPosLongitude() {
		return posLongitude;
	}

	public void setPosLongitude(int posLongitude) {
		this.posLongitude = posLongitude;
	}

	public int getPosLatitude() {
		return posLatitude;
	}

	public void setPosLatitude(int posLatitude) {
		this.posLatitude = posLatitude;
	}

	public boolean addFocusShop(int shopId) {
		if (focusShop.contains(shopId)) {
			return false;
		}
		focusShop.add(shopId);
		return true;
	}

	public List<Integer> queryFocusShop() {
		return focusShop;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "User [focusShop=" + focusShop + ", userId=" + userId + ", userPassword=" + userPassword + ", avator="
				+ avator + ", posLongitude=" + posLongitude + ", posLatitude=" + posLatitude + "]";
	}
	

}
